home *** CD-ROM | disk | FTP | other *** search
/ ETO Development Tools 1 / ETO Development Tools 1.iso / Essentials / MacApp Documentation / Class&Method Reference (stack) / MacApp 2.0 Reference / MacApp 2.0 Reference / card_364973.txt < prev    next >
Encoding:
Text File  |  1990-07-24  |  1.1 KB  |  33 lines

  1. -- card: 364973 from stack: in.0 Reference
  2. -- bmap block id: 0
  3. -- flags: 0000
  4. -- background id: 177597
  5. -- name: StripLong
  6.  
  7.  
  8. -- part contents for background part 1
  9. ----- text -----
  10. If the system is running in 24-bit addressing mode, StripLong returns the value of the low-order three bytes of the specified LongInt value.  If the system is in 32-bit mode, however, StripLong simply passes back the LongInt value unchanged.
  11. The address parameter is the LongInt value that is to be stripped.
  12. MacApp calls StripLong from several routines that manipulate address directly. You can use this routine to ensure that an address is a valid 32-bit clean address; that is, that all bits in the LongInt are part of the address, and none are flags or other non-address data.
  13.  
  14. -- part contents for background part 5
  15. ----- text -----
  16. Unit: UMacAppUtilities
  17.  
  18.  
  19. -- part contents for background part 23
  20. ----- text -----
  21. ROUTINE
  22.  
  23. -- part contents for background part 2
  24. ----- text -----
  25. StripLong
  26.  
  27. -- part contents for background part 20
  28. ----- text -----
  29. FUNCTION StripLong(address: UNIV Ptr): LONGINT;
  30.  
  31. -- part contents for background part 40
  32. ----- text -----
  33. 430 of 498 Routines